package com.mvp.shq.washer.ui.shop.shopUserCenter;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.UserCountInfo;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/10/10.
 */

public class Model implements ShopUserCenterConstract.Model {
    @Override
    public Observable<BaseResult<UserCountInfo>> getUserCountInfo(String token, String userId) {
        return ShopApi.getInstance().service
                .getUserCountInfo(token,userId)
                .compose(RxSchedulers.io_main());
    }
}
